﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;

namespace NetWorkTest
{
    [DataContract] 
    class CommJson
    {
       
        public class Person
        {
            [DataMember(Order = 0, IsRequired = true)]
            public string Name { get; set; }

            [DataMember(Order = 1)]
            public int Age { get; set; }

            [DataMember(Order = 2)]
            public bool Alive { get; set; }

            [DataMember(Order = 3)]
            public string[] FavoriteFilms { get; set; }

            [DataMember(Order = 4)]
            public Person Child { get; set; }
        }
    }
}
